﻿using WeDonekRpc.Modular;

namespace Basic.FlowGatewayModule
{
    internal static class LinqHelper
    {
        public static long ToEmpId ( this IUserState state )
        {
            return state.GetValue<long>("UserId");
        }
        public static long ToDeptId ( this IUserState state )
        {
            return state.GetValue<long>("EntryDeptId");
        }
        public static long ToUnitId ( this IUserState state )
        {
            return state.GetValue<long>("EntryUnitId");
        }
        //DeptId
        public static long ToCompanyId ( this IUserState state )
        {
            return state.GetValue<long>("EntryComId");
        }
    }
}
